package org.example.pattern.factory.factorymethod;

/**
 * @Author zhangjg
 * @Date 2021/9/17 20:31
 * @Description
 **/
public class ClientTest {

    public static void main(String[] args) {

        IFruitFactory fruitFactory = new FruitFactory();
        System.out.println(fruitFactory.getFruit(1).getName());

        System.out.println(fruitFactory.getFruit(2).getName());

    }

}
